import request from "@/utils/request";

// 1.路段列表
export function trunkLineList(params?: any) {
    return request({
        url: "/v2/traffic-state/road/city/trunkLineList",
        params,
    });
}

// 2.路口列表
export function crossList(params?: any) {
    return request({
        url: "/v2/traffic-state/junction/city/crossList",
        params,
    });
}

// 3.地图指标展示
export function mapIndexShow(params?: any) {
    return request({
        url: "/v2/traffic-state/road/city/mapIndexShow",
        params,
    });
}

// 4.折线图
export function charts(params?: any) {
    return request({
        url: "/v2/traffic-state/roadseg/city/charts",
        params,
    });
}

export function webConfig(params?: any) {
    return request({
        url: "/v2/traffic-state/common/common/webConfig",
        params,
    });
}
